package com.example.entity.ymlConfig;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
@Data
public class XiaoXiConfig {

    @Value("${spring.profiles.YFCOMPANY}")
    private String YFCOMPANY1;

    private static String YFCOMPANY;
    @PostConstruct
    public void setYFCOMPANY() {
        YFCOMPANY = this.YFCOMPANY1;
    }

    public static String getYFCOMPANY() {
        return YFCOMPANY;
    }



    @Value("${spring.profiles.active}")
    private String active1;

    private static String active;

    @PostConstruct
    public void setActive() {
        active = this.active1;
    }

    public static String getActive() {
        return active;
    }

}
